package com.czk.springcloud.dao;

import com.czk.springcloud.entity.Payment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @Author:ChenZhangKun
 * @Date: 2020/12/16 16:43
 */
@Mapper
public interface PaymentMapper {
    /**
     * 写
     * @param payment
     * @return
     */
    int create(Payment payment);

    /**
     * 读
     * @param id
     * @return
     */
    Payment getPaymentById(@Param("id") Long id);
}
